package com.mijie.homi.search.util;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

import com.mijie.homi.common.domain.mood.Mood;
import static org.quaere.DSL.*;

public class tLinq {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		//Mood[] cities = new Mood[2];
		  City[] cities=City.ALL_CITIES;
		List li = new ArrayList<Map>();
		for (int i = 6; i > 3; i--) {
			Map<String, Integer> m = new HashMap<String, Integer>();
			m.put("k"  , i);
//			for(Map.Entry  e:m)
//			{
//				//e.
//			}
			
			li.add(m);
		}
//.orderBy(
//	"mp.get()").
		Iterable<Map> largePopulations = from("mp").in(li).select("mp");
	//	Iterable<Integer> filtered =  
		  
		
		for (Map city : largePopulations) {
			String s = JSONObject.fromObject(city).toString();
			System.out.println(s);
		}

	}

}
